package com.act.demo.acitivitim4.taskhandler;

import com.act.demo.acitivitim4.enums.TaskEnum;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * @description:
 * @author: liujin
 * @create: 2020-07-07 15:48
 */
public interface CompleteReviewTaskHandler {


    /**
     * 当前审核节点
     *@param: []
     *@author: liujin
     *@date: 2020/6/18
     */
    TaskEnum getTaskEnum();

    /**
     * 审核节点完成业务处理类
     *@param: [processInstanceId, taskEnum, passFlag, comment, variables]
     *@author: liujin
     *@date: 2020/6/18
     */
    void handler(@NotEmpty String processInstanceId, @NotNull TaskEnum taskEnum, boolean passFlag, String comment, Map<String, Object> variables);

}
